Skip to content

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Apr 2, 2025

Convert a "while (1)" loop to a "do {} while (x)" loop to make the termination condition explicit and deduplicate a function call.

Convert a "while (1)" loop to a "do {} while (x)" loop to make the
termination condition explicit and deduplicate a function call.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One open

Copy link
Contributor

@marcinszkudlinski marcinszkudlinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at first version the while loop had no exit condition, thread used to be terminated by async abort. Break was introduced as a fix. "Do - while" does the same, a bit cleaner way.
Ship it!

@lgirdwood lgirdwood merged commit 4af4450 into thesofproject:main Apr 7, 2025
60 of 67 checks passed
@lyakh lyakh deleted the dp branch April 22, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants